package com.abc20230319.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public List<String> getRoleList(String username) {
        return userMapper.selectRole(username);
    }

    public List<String> getPermissionList(String username) {
        return userMapper.selectPermission(username);
    }

}
